<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('SchoolDistrict/index')}">校区管理</a></li>
        <li><a href="{:url('SchoolDistrict/add')}">添加校区</a></li>
    </ul>
    <div class="row margin-top-20">
        <div class="col-md-2">
            <div class="list-group">

            </div>
        </div>
        <div class="col-md-6">
            <form class="js-ajax-form" action="{:url('SchoolDistrict/editPost')}" method="post">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-parent"><span class="form-required">*</span>上级</label>
                            <div>
                                <select class="form-control" name="parent_id" id="input-parent">
                                    <option value="0">作为一级分类</option> {$categories_tree}
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name"><span class="form-required">*</span>*地区名字</label>
                            <div>
                                <input type="hidden" name="id" value="{$id}">
                                <input type="text" class="form-control" id="input-name" name="name" value="{$name}">
                            </div>
                        </div>
                        <!--<p>{$is_school}</p>-->
                        <if condition="($is_school==0)">
                            <div class="form-group">
                                <label for="input-name1">校区地址</label>
                                <div>
                                    <input type="text" class="form-control" id="input-name1" name="address" value="{$address}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-name2">校区交通</label>
                                <div>
                                    <input type="text" class="form-control" id="input-name2" name="traffic" value="{$traffic}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-name3">咨询电话</label>
                                <div>
                                    <input type="text" class="form-control" id="input-name3" name="phone" value="{$phone}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-name4">服务时间</label>
                                <div>
                                    <input type="text" class="form-control" id="input-name4" name="service_time" value="{$service_time}">
                                </div>
                            </div>
                        </if>
                    </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                    <a class="btn btn-default" href="{:url('SchoolDistrict/index')}">{:lang('BACK')}</a>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>